package com.wanhong.springboot.ssm.framework.exception;



/**
 * @author w_yu
 * @date 2020/12/2 15:11
 * @description: 服务异常code
 **/
public enum BizExceptionCodeEnum implements BaseExceptionEnum {
    SYSTEM_EXCEPTION_ERROR(500, "系统异常，请查看原因"),
    REST_METHOD_ARGUMENT_NOT_VALID_ERROR(400, "校验RESTful方法参数不符，请确认!"),
    TOKEN_ILLEGAL(1000,"token非法"),
    TOKEN_EXPIRE(1001,"token已过期"),
    USER_LOGIN_ERROR(1002,"用户名不存在或密码错误"),
    USER_NOT_EXIST(1003,"用户不存在"),

    APPLICATION_NOT_EXIST(1004,"应用不存在"),


    ;

    private Integer code;
    private String msg;

    BizExceptionCodeEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode(){
        return this.code;
    }

    public String getMsg(){
        return this.msg;
    }
}
